package observer;

public class ObserverEntityOne extends Observer{

    public ObserverEntityOne(Subject subject) {
        this.subject = subject;
        this.subject.attache(this);
    }

    @Override
    public void update() {
        System.out.println("one:"+Integer.toHexString(subject.getState()));
    }
}
